<php>
	$this->display(tpl('head'));
</php>
<fieldset class="layui-elem-field layui-field-title">
	<legend>认证管理</legend>
</fieldset>
<div class="layui-row">
	<a class="layui-btn" href="/admin/renzheng/index/type_main/state_1">主体已审</a>
	<a class="layui-btn layui-btn-normal" href="/admin/renzheng/index/type_main/state_-1">主体未审</a>
	<a class="layui-btn layui-btn-danger" href="/admin/renzheng/index/type_main/state_-2">主体退回</a>
	<php> hook_listen('admin_renzheng_index_tpl_sort')</php>
</div>
<if condition="$_GET['type']=='main'">
	<table class="layui-table">
		<thead>
			<tr>
				<th width="100">UID</th>
				<th width="100">用户名</th>
				<th>认证主体</th>
				<th>主体名称</th>
				<th>主体代码</th>
				<th>认证状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach array="data">
				<tr>
					<td>{{$row['uid']}}</td>
					<td>{{$row['username']}}</td>
					<td>
						{{$row['id_type']==1 ? '个人认证' : '企业认证'}}
					</td>
					<td>
						{{$row['real_name']}}
					</td>
					<td>
						{{$row['id_number']}}
					</td>
					<td>
						{{$row['id_rz_state']==1 ? '<span class="green">审核通过</span>' :($row['id_rz_state']==-1 ? '<span class="red">待审核</span>' : '<span class="blue">退回编辑</span>' )}}
					</td>
					<td width="80">
						<div class="layui-table-cell ">
							<a class="layui-btn layui-btn-sm layui-btn-warm" href="/admin/renzheng/content/type_main/uid_{{$row['uid']}}">认证详情</a>
						</div>
					</td>
				</tr>
			</foreach>
		</tbody>
	</table>
<div class="page">
	{{$Get_Page}}
</div>
</if>


<php> hook_listen('admin_renzheng_index_tpl_list') </php>
<php> $this->display(tpl('foot')); </php>